/* TDP SmartRepair PAC3 */

package edu.uoc.tdp.pac3.common.beans;

import java.io.Serializable;
import java.sql.Date;

/**
 * Classe Data Transfer Object (DTO) de la taula PROVEIDOR
 * @author Josep
 *
 */
public class Proveidor implements Serializable{

	private static final long serialVersionUID = 1L;
	private int id_proveidor;
	private String nom;
	private Date data_alta;
	private float perc_descompte;
	private int quant_descompte;

	public Proveidor(){
		super();
	}	
	
	public Proveidor(int id_proveidor, String nom, Date data_alta,
					float perc_descompte, int quant_descompte){
		super();
		this.id_proveidor = id_proveidor;
		this.nom = nom;
		this.data_alta = data_alta;
		this.perc_descompte = perc_descompte;
		this.quant_descompte = quant_descompte;
	}

	/* ---------------------- SETTERS ----------------------------------*/
	
	public void setId_proveidor(int id_proveidor) {
		this.id_proveidor = id_proveidor;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public void setData_alta(Date data_alta) {
		this.data_alta = data_alta;
	}

	public void setPerc_descompte(float perc_descompte) {
		this.perc_descompte = perc_descompte;
	}

	public void setQuant_descompte(int quant_descompte) {
		this.quant_descompte = quant_descompte;
	}

	
	/* ---------------------- GETTERS ----------------------------------*/

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public int getId_proveidor() {
		return id_proveidor;
	}

	public String getNom() {
		return nom;
	}

	public Date getData_alta() {
		return data_alta;
	}

	public float getPerc_descompte() {
		return perc_descompte;
	}

	public int getQuant_descompte() {
		return quant_descompte;
	}

	
	
	@Override
	public String toString() {
		return "Proveidor [id_proveidor=" + id_proveidor + ", nom=" + nom
				+ ", data_alta=" + data_alta + ", perc_descompte="
				+ perc_descompte + ", quant_descompte=" + quant_descompte + "]";
	}


	

	
}
